package com.example.meetingbook.mapper;

import com.example.meetingbook.model.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author 麦健豪
 * @date 2021/12/23 18:05
 */
public interface EmployeeMapper {
    Employee loadEmpByUsername(String username);

    Integer doReg(Employee employee);

    List<Employee> getAllEmpsByStatus(Integer status);

    Integer approveaccount(@Param("employeeid") Integer employeeid, @Param("status") Integer status);


    List<Employee> getAllEmps(@Param("emp") Employee employee, @Param("page") Integer page,
                              @Param("pagesize") Integer pageSize);


    Long getTotal(Employee employee);


    List<Employee> getEmpsByDepId(Integer depId);

    Map<Integer, String> getIdAndName();

    List<Employee> getAllEmpsByid(List<Integer> list);

    void doChang(String username, String password);
}